/*
 * @Author: zhang gen yuan
 * @Date: 2021-09-16 17:08:16
 * @Descripttion: 
 */
import router, { resetRouter } from '/@/router'

const state = {
  token: '',
  name: 'Mr.Zhang',
  avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
  introduction: '',
  roles: []
}

const mutations = {
  setUserInfo(state,payload){
    state.token = payload.token;
  }
}

const actions = {
  setUserInfo({commit},payload){
    commit('setUserInfo',payload)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
